<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Autenticação de usuários</title>
	<link rel="StyleSheet" type="text/css" href="../tema/css/layout.css"
		media="screen" />
	<style type="text/css">
#PainelPos {
	position: relative;
	left: 50%;
	top: 50%;
	margin-top: 50%;
}
</style>
</h:head>
<h:body style="padding:20px">
	<h:form id="login">

		<div id="PainelPos" align="center">
			<p:dialog header="Autenticação do sistema" width="400" modal="true"
				closable="false" position="center" showEffect="slide"
				draggable="true" resizable="false" visible="true">
					<h:panelGrid columns="2" cellpadding="5">
						<h:outputLabel value="Login:" />
						<p:inputText id="txtLogin"
							value="#{loginBean.gestorSelecionado.login}" required="true"
							requiredMessage="Usuário: Campo obrigatório" />

						<h:outputLabel value="Senha:" />
						<p:password id="txtSenha"
							value="#{loginBean.gestorSelecionado.senha}" required="true"
							requiredMessage="Senha: Campo obrigatório" />

						<f:facet name="footer">
							<h:commandButton value="Acessar"
								action="#{loginBean.BuscarLoginTest()}" />
						</f:facet>
					</h:panelGrid>
					<h:messages />
			</p:dialog>
		</div>
		
	</h:form>

</h:body>
</html>